package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 扣单记录业务对象 t_user_deduction_record
 *
 * @author Joker
 * @date 2024-07-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class UserDeductionRecordBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户名称
     */
    @NotBlank(message = "用户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userName;

    /**
     * 代理名称
     */
    @NotBlank(message = "代理名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String agentName;

    /**
     * 充值金额
     */
    @NotNull(message = "充值金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal chargeMoney;

    /**
     * 充值类型（0-会员充值、1-网格会员充值、2-钻石充值）
     */
    @NotBlank(message = "充值类型（0-会员充值、1-网格会员充值、2-钻石充值）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chargeType;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
